package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

import java.io.Serializable;

/**
 * @author lrl
 */
@Data
public class Goods implements Serializable {

    private static final long serialVersionUID = -991725988202954837L;
    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;

    private Integer stock;

    @Version
    private Integer version;
}
